Documentation for class line

Inherits from 	ornament 

Properties declared in line 
	arrow_mode 
	end_point 
	linecap 
	start_point 

Class Methods declared in line 
	new(start_point, end_point) 

Methods declared in line 
	any 
		arrow_mode 
		end_point 
		set_arrow_mode(mode) 
		set_end_point(point) 
		set_start_point(point) 
		start_point 
	get 
		arrow_mode 
		end_point 
		linecap 
		start_point 
	set 
		set_arrow_mode(mode) 
		set_end_point(point) 
		set_linecap(cap) 
		set_start_point(point) 

Class 
#begin_class
line 
The class line is a subclass of the class ornament. 
A line is defined by its start point and its end point. 
A line has an arrow-mode and a linecap.
#end_class

Properties 

#begin_property
arrow_mode 
Stores the arrow-mode of the line. The arrow-mode specifies if the line has an arrowhead and in which end. The arrow-modes are:
#no_arrow - no arrow on the line
#at_start - an arrow at the start point
#at_end - an arrow at the end point
#at_both - arrows in both ends
Default is #no_arrow.
#end_property

#begin_property
end_point 
Stores the end point of the line.
#end_property

#begin_property
linecap 
Stores how the ends of the line are drawn. The different types of linecaps are:
#square
#round
Default is #square.
#end_property

#begin_property
start_point 
Stores the start point of the line.
#end_property

Methods 

#begin_method
arrow_mode 
Returns the arrow_mode property of the line.
#end_method

#begin_method
end_point 
Returns the end_point property of the line.
#end_method

#begin_method
linecap 
Returns the linecap property of the line.
#end_method

#begin_method
set_arrow_mode(mode)
Sets the arrow_mode property to the symbol mode. 
Valid arrow-modes are:
#no_arrow - no arrow on the line
#at_start - an arrow at the start point
#at_end - an arrow at the end point
#at_both - arrows in both ends
Returns self.
#end_method

#begin_method
set_end_point(point) 
Sets the end_point property to point.
Ex:
l := {line}:new({0 0}, {100 100})
l:set_end_point({200 200})
#end_method

#begin_method
set_linecap(cap) 
Sets the linecap property to the symbol cap.
The different types of linecaps are:
#square
#round
Returns self.
#end_method

#begin_method
set_start_point(point) 
Sets the start_point property to point.
Ex:
l := {line}:new({0 0}, {100 100})
l:set_start_point({20 20})
#end_method

#begin_method
start_point 
Returns the start_point property of the line.
#end_method

Class Methods 

#begin_class_method
new(start_point, end_point) 
Returns a new line object.
Ex:
{line}:new({0 0}, {100 100})
will create a new line with start point in (0, 0) and end point in (100, 100).
#end_class_method